package com.homework.thread;

public class test1 {
  public static void main(String[] args) throws InterruptedException {
    // 有一个字符串“abcdefg”,要求每秒钟倒序打印一个字符。
    String s = "abcdefg";
    for (int i = s.length() - 1; i >= 0; i--) {
      System.out.println(s.charAt(i));
      Thread.sleep(1000);
    }
  }
}
